package com.itheima.annotation;

import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService{
    @Resource(name = "userDao")
    private UserDao userDao;
    public void save() {
        this.userDao.save();
        System.out.println("userservice    save");
    }
}
